CC = g++
CFLAGS = -Wall -ggdb
OBJ = main.o

all : hospital hospital-pg c-hospital

hospital : $(OBJ)
	$(CC) $(CFLAGS) $(OBJ) -DHOSPITAL_CC -o hospital
	
c-hospital : hospital.c
	gcc -Wall -DHOSPITAL_C -ggdb hospital.c -o c-hospital
	
hospital-pg : $(OBJ)
	$(CC) $(CFLAGS) -pg $(OBJ) -o hospital-pg

main.o : main.cc adj_list_graph.h
	$(CC) $(CFLAGS) -DHOSPITAL_CC -c main.cc

adj_list_graph.h : circ_list.h list_queue.h
	touch adj_list_graph.h

circ_list.h : list_node.h
	touch circ_list.h

list_queue.h : list_node.h
	touch list_queue.h
	
.PHONY : clean
clean :
	rm *.o
	